Beispiel #1
0
 public void SetGlobalUniform(ShaderUniformName name, Vector4 value)
 {
     ForeachObject((aObject) => aObject.GetComponent <Renderer>().material.SetVector(name.ToString(), value));
 }
Beispiel #2
0
 public void AddUniform(ShaderUniformName name, float value)
 {
     _floatUniforms.RemoveAll(x => x.Name.Equals(name.ToString()));
     _floatUniforms.Add(new ShaderUniform <float>(name, value));
 }
Beispiel #3
0
 public void AddUniform(ShaderUniformName name, Vector4 value)
 {
     _vector4Uniforms.RemoveAll(x => x.Name.Equals(name.ToString()));
     _vector4Uniforms.Add(new ShaderUniform <Vector4>(name, value));
 }
 public void SetGlobalUniform(ShaderUniformName name, Vector4 value)
 {
     ForeachObject(aGrassPack => aGrassPack.MyBlock.AddGlobalUniform(name.ToString(), value));
 }