Sha256: 028d5ab99aae379a0f28f1a9f44d3c7e9539053ce128e32a086f1f1efdc8e820
Contents?: true
Size: 580 Bytes
Versions: 7
Compression:
Stored size: 580 Bytes
Contents
#!/usr/bin/ruby -w $: << File.dirname(__FILE__) + "/.." require 'ogre' require 'application' class ParticleApplication < Ogre::Application def create_scene scene_manager.set_ambient_light Ogre::ColourValue.new(0.5, 0.5, 0.5) scene_manager.set_sky_dome(true, "CloudySky", 5, 8) @fountain = scene_manager.root_scene_node.create_child_scene_node; @particle_system = scene_manager.create_particle_system("fountain1", "Smoke") node = @fountain.create_child_scene_node node.attach_object(@particle_system) end end app = ParticleApplication.new app.go
Version data entries
7 entries across 7 versions & 2 rubygems