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