public CameraMatrixParameters(string prefix) { _spMatrix = new ShaderProperty.MatrixValue(prefix + "ProjectorMatrix"); _spPos = new ShaderProperty.VectorValue(prefix + "ProjectorPosition"); _spZBuffer = new ShaderProperty.VectorValue(prefix + "ProjectorClipPrecompute"); _camParams = new ShaderProperty.VectorValue(prefix + "ProjectorConfiguration"); }
public static bool edit(this Material mat, ShaderProperty.VectorValue property, string name = null) { var val = mat.Get(property); if (name.IsNullOrEmpty()) { name = property.NameForDisplayPEGI; } if (name.edit(ref val)) { mat.Set(property, val); return(true); } return(false); }
void InitializeProperties() { positionAndSize = new ShaderProperty.VectorValue(variableName); sizeCubic = new ShaderProperty.VectorValue(variableName + "_Size"); repeatProps = new ShaderProperty.VectorValue(variableName + "_Reps"); }