Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.Material#onBeforeCompile

A framework for Beat Saber map scripting.
Go to Latest
method three.Material.prototype.onBeforeCompile
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { Material } = three;

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.

Parameters

shader: Shader

Source code of the shader

renderer: WebGLRenderer

WebGLRenderer Context that is initializing the material