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); }
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); }
using System;