未验证 提交 19ef82b9 编写于 作者: B Bastien Robert 提交者: GitHub

Add defines to material types

上级 e9f31ad1
......@@ -30,6 +30,7 @@ export interface MaterialParameters {
clippingPlanes?: Plane[];
clipShadows?: boolean;
colorWrite?: boolean;
defines?: any;
depthFunc?: DepthModes;
depthTest?: boolean;
depthWrite?: boolean;
......@@ -125,6 +126,12 @@ export class Material extends EventDispatcher {
* Whether to render the material's color. This can be used in conjunction with a mesh's .renderOrder property to create invisible objects that occlude other objects. Default is true.
*/
colorWrite: boolean;
/**
* Custom defines to be injected into the shader. These are passed in form of an object literal, with key/value pairs. { MY_CUSTOM_DEFINE: '' , PI2: Math.PI * 2 }.
* The pairs are defined in both vertex and fragment shaders. Default is undefined.
*/
defines: any;
/**
* Which depth function to use. Default is {@link LessEqualDepth}. See the depth mode constants for all possible values.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册