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

x/threejs_4_deno/src/materials/Materials.js>Material#customProgramCacheKey

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method Material.prototype.customProgramCacheKey
Re-export
import { Material } from "https://deno.land/x/threejs_4_deno@v121/src/materials/Materials.js";

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.

Returns

string