lib/cyberarm_engine/opengl/shader.rb in cyberarm_engine-0.23.0 vs lib/cyberarm_engine/opengl/shader.rb in cyberarm_engine-0.24.0
- old
+ new
@@ -383,11 +383,11 @@
#
# @param variable [String]
# @param value [Vector]
# @param location [Integer]
# @return [void]
- def uniform_vec3(variable, value, location = nil)
+ def uniform_vector3(variable, value, location = nil)
attr_loc = location || attribute_location(variable)
glUniform3f(attr_loc, *value.to_a[0..2])
end
@@ -395,10 +395,10 @@
#
# @param variable [String]
# @param value [Vector]
# @param location [Integer]
# @return [void]
- def uniform_vec4(variable, value, location = nil)
+ def uniform_vector4(variable, value, location = nil)
attr_loc = location || attribute_location(variable)
glUniform4f(attr_loc, *value.to_a)
end
end