2
0
Эх сурвалжийг харах

Added support for Color params. Really just a Vec4f.

Mark Sibly 8 жил өмнө
parent
commit
6c191ef936

+ 10 - 0
modules/mojo/graphics/uniformblock.monkey2

@@ -100,6 +100,16 @@ Class UniformBlock Extends Resource
 		Return GetFloatPtr( id,Type.Vec4f )
 	End
 	
+	'***** Color (really just Vec4f) *****
+	'
+	Method SetColor( uniform:String,value:Color )
+		SetFloatData( uniform,value,Type.Vec4f )
+	End
+
+	Method GetColor:Color( uniform:String )
+		Return GetFloatData<Color>( uniform,Type.Vec4f )
+	End
+	
 	'***** Mat3f *****
 	'
 	Method SetMat3f( uniform:String,value:Mat3f )