예제 #1
0
 public void SetValue(Vector4 value)
 {
     GL.UseProgram(_parentEffect.CurrentTechnique.Passes [0].shaderProgram);
     MonoMac.OpenGL.Vector4 vect4 = new MonoMac.OpenGL.Vector4(value.X, value.Y, value.Z, value.W);
     _cachedValue = vect4;
     GL.Uniform4(internalIndex, vect4);
     GL.UseProgram(0);
 }
예제 #2
0
		public void SetValue (Vector4 value)
		{
			GL.UseProgram(_parentEffect.CurrentTechnique.Passes[0].shaderProgram);			
			MonoMac.OpenGL.Vector4 vect4 = new MonoMac.OpenGL.Vector4(value.X, value.Y, value.Z, value.W);
			_cachedValue = vect4;
			GL.Uniform4(internalIndex,vect4);
			GL.UseProgram(0);	
		}
예제 #3
0
using System;