lib/mittsu/renderers/opengl_renderer.rb in mittsu-0.3.2 vs lib/mittsu/renderers/opengl_renderer.rb in mittsu-0.3.3
- old
+ new
@@ -999,10 +999,10 @@
def update_camera_uniforms(uniforms, camera, material)
glUniformMatrix4fv(uniforms['projectionMatrix'], 1, GL_FALSE, array_to_ptr_easy(camera.projection_matrix.elements))
if @logarithmic_depth_buffer
- glUniform1f(uniforms['logDepthBuffFC'], 2.0 / Math.log(camera.far + 1.0) / Math::LN2)
+ glUniform1f(uniforms['logDepthBuffFC'], 2.0 / ::Math.log(camera.far + 1.0) / Math::LN2)
end
if material.needs_camera_position_uniform? && !uniforms['cameraPosition'].nil?
@_vector3.set_from_matrix_position(camera.matrix_world)
glUniform3f(uniforms['cameraPosition'], @_vector3.x, @_vector3.y, @_vector3.z)