Sha256: a4e902bdca2eb58a89398106b68447ba21402934a1c9882c386420290ae99e48
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
#!/usr/bin/ruby -w 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shattered_ogrerb-0.5.0.1 | vendor/ogrerb/samples/smoke.rb |