public void SetGlobalUniform(ShaderUniformName name, Vector4 value) { ForeachObject((aObject) => aObject.GetComponent <Renderer>().material.SetVector(name.ToString(), value)); }
public void AddUniform(ShaderUniformName name, float value) { _floatUniforms.RemoveAll(x => x.Name.Equals(name.ToString())); _floatUniforms.Add(new ShaderUniform <float>(name, value)); }
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)); }