提交 2fed9a73 编写于 作者: J Johannes Deml

Add missing onBeforeCompile definition to Material.d.ts

上级 eaa4f9dc
import { Plane } from './../math/Plane';
import { EventDispatcher } from './../core/EventDispatcher';
import { WebGLRenderer } from './../renderers/WebGLRenderer';
import {
BlendingDstFactor,
BlendingEquation,
......@@ -266,6 +267,13 @@ export class Material extends EventDispatcher {
*/
dispose(): void;
/**
* An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.
* @param shader Source code of the shader
* @param renderer WebGLRenderer Context that is initializing the material
*/
onBeforeCompile ( shader : Object, renderer : WebGLRenderer ) : null
/**
* Sets the properties based on the values.
* @param values A container with parameters.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册