未验证 提交 6972df7c 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #19966 from Mugen87/dev46

Material.d.ts: Fix onBeforeCompile parameter.
import { Plane } from './../math/Plane';
import { EventDispatcher } from './../core/EventDispatcher';
import { WebGLRenderer } from './../renderers/WebGLRenderer';
import { Shader } from './../renderers/shaders/ShaderLib';
import {
BlendingDstFactor,
BlendingEquation,
......@@ -321,10 +322,10 @@ export class Material extends EventDispatcher {
/**
* 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 shaderobject Represents the shader source code and program information.
* @param shader Source code of the shader
* @param renderer WebGLRenderer Context that is initializing the material
*/
onBeforeCompile ( shaderobject : object, renderer : WebGLRenderer ) : void;
onBeforeCompile ( shader : Shader, renderer : WebGLRenderer ) : void;
/**
* In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册