UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

13 lines (11 loc) 366 B
// Template for gsplat stream output - write function for MRT // Placeholders: {funcName}, {returnType}, {index}, {defineGuard} // {defineGuard} is 1 for real output, 0 for no-op stub var glslStreamOutput = /* glsl */ ` void write{funcName}({returnType} value) { #if {defineGuard} pcFragColor{index} = value; #endif } `; export { glslStreamOutput as default };