@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
92 lines (91 loc) • 2.37 kB
TypeScript
/**
* The standard material options define a set of options used to control the shader frontend shader
* generation, such as textures, tints and multipliers.
*
* @category Graphics
*/
export class StandardMaterialOptions {
/**
* If UV1 (second set of texture coordinates) is required in the shader. Will be declared as
* "vUv1" and passed to the fragment shader.
*
* @type {boolean}
*/
forceUv1: boolean;
/**
* The value of {@link StandardMaterial#ambientTint}.
*
* @type {boolean}
*/
ambientTint: boolean;
/**
* Defines if {@link StandardMaterial#diffuse} constant should affect diffuse color.
*
* @type {boolean}
*/
diffuseTint: boolean;
/**
* Defines if {@link StandardMaterial#specular} constant should affect specular color.
*
* @type {boolean}
*/
specularTint: boolean;
/**
* Defines if {@link StandardMaterial#metalness} constant should affect metalness value.
*
* @type {boolean}
*/
metalnessTint: boolean;
/**
* Defines if {@link StandardMaterial#gloss} constant should affect glossiness value.
*
* @type {boolean}
*/
glossTint: boolean;
/**
* Defines if {@link StandardMaterial#emissive} constant should affect emissive color.
*
* @type {boolean}
*/
emissiveTint: boolean;
/**
* Defines if {@link StandardMaterial#opacity} constant should affect opacity value.
*
* @type {boolean}
*/
opacityTint: boolean;
emissiveEncoding: string;
lightMapEncoding: string;
/**
* If normal map contains X in RGB, Y in Alpha, and Z must be reconstructed.
*
* @type {boolean}
*/
packedNormal: boolean;
/**
* Invert the gloss channel.
*
* @type {boolean}
*/
glossInvert: boolean;
/**
* Invert the sheen gloss channel.
*
* @type {boolean}
*/
sheenGlossInvert: boolean;
/**
* Invert the clearcoat gloss channel.
*
* @type {boolean}
*/
clearCoatGlossInvert: boolean;
/**
* Storage for the options for lit the shader and material.
*
* @type {LitShaderOptions}
*/
litOptions: LitShaderOptions;
get pass(): number;
}
import { LitShaderOptions } from '../shader-lib/programs/lit-shader-options.js';