Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 void InitializeProperties()
 {
     positionAndSize = new ShaderProperty.VectorValue(variableName);
     sizeCubic       = new ShaderProperty.VectorValue(variableName + "_Size");
     repeatProps     = new ShaderProperty.VectorValue(variableName + "_Reps");
 }