lib/mittsu/cameras/cube_camera.rb in mittsu-0.4.1 vs lib/mittsu/cameras/cube_camera.rb in mittsu-0.5.0
- old
+ new
@@ -38,10 +38,10 @@
@camera_nz = Mittsu::PerspectiveCamera.new(fov, aspect, near, far)
@camera_nz.up.set(0.0, -1.0, 0.0)
@camera_nz.look_at(Mittsu::Vector3.new(0.0, 0.0, -1.0))
self.add(@camera_nz)
- @render_target = Mittsu::OpenGLRenderTargetCube(cube_resolution, cube_resolution, format: Mittsu::RGBFormat, mag_filter: Mittsu::LinearFilter, min_filter: Mittsu::LinearFilter)
+ @render_target = Mittsu::RenderTargetCube(cube_resolution, format: Mittsu::RGBFormat, mag_filter: Mittsu::LinearFilter, min_filter: Mittsu::LinearFilter)
end
def update_cube_map(renderer, scene)
generate_mipmaps = render_target.generate_mipmaps