File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ <h3>[method:null dispose]()</h3>
295295 These needs to be disposed by [page:Texture Texture].
296296 </ p >
297297
298- < h3 > [method:null onBeforeCompile]( [param:Object shader], [param:WebGLRenderer renderer] )</ h3 >
298+ < h3 > [method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer renderer] )</ h3 >
299299 < p >
300300 An optional callback that is executed immediately before the shader program is compiled.
301301 This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.
Original file line number Diff line number Diff line change 11import { Plane } from './../math/Plane' ;
2+ import { Shader } from './../renderers/shaders/ShaderLib'
23import { EventDispatcher } from './../core/EventDispatcher' ;
34import { WebGLRenderer } from './../renderers/WebGLRenderer' ;
45import {
@@ -272,7 +273,7 @@ export class Material extends EventDispatcher {
272273 * @param shader Source code of the shader
273274 * @param renderer WebGLRenderer Context that is initializing the material
274275 */
275- onBeforeCompile ( shader : Object , renderer : WebGLRenderer ) : void ;
276+ onBeforeCompile ( shader : Shader , renderer : WebGLRenderer ) : void ;
276277
277278 /**
278279 * Sets the properties based on the values.
You can’t perform that action at this time.
0 commit comments