Variable StandardWebGPULayoutConst
StandardWebGPULayout: {
textures: {
u_alphaMap: { type: "texture" };
u_diffuseMap: { type: "texture" };
u_emissiveMap: { type: "texture" };
u_envMap: { type: "texture" };
u_metallicMap: { type: "texture" };
u_normalMap: { type: "texture" };
u_reflectionMap: { type: "texture" };
u_roughnessMap: { type: "texture" };
};
uniformLayout: string[];
uniforms: {
u_color: { type: "color" };
u_extraParams: { type: "vec4" };
u_isTerrain: { type: "float" };
u_liquidParams: { type: "vec4" };
u_metallic: { type: "float" };
u_model: { type: "mat4" };
u_reflectivity: { defaultValue: number; type: "float" };
u_roughness: { type: "float" };
u_shininess: { type: "float" };
u_specColor: { type: "color" };
u_texOffset: { type: "vec2" };
u_texRepeat: { type: "vec2" };
u_thresholds: { type: "vec4" };
u_time: { defaultValue: number; type: "float" };
u_useEnvMap: { defaultValue: number; type: "float" };
u_useReflectionMap: { defaultValue: number; type: "float" };
};
} = ...
Type Declaration
-
textures: {
u_alphaMap: { type: "texture" };
u_diffuseMap: { type: "texture" };
u_emissiveMap: { type: "texture" };
u_envMap: { type: "texture" };
u_metallicMap: { type: "texture" };
u_normalMap: { type: "texture" };
u_reflectionMap: { type: "texture" };
u_roughnessMap: { type: "texture" };
}
-
-
The standard uniform layout for objects using the [WGSL_STRUCTS] chunk. This MUST match the ObjectUniforms struct in structs.wgsl.