Visual debugging methods like drawing a cross on screen and
drawing a square around the screen.
These are wgsl functions, not js functions.
The function is enclosed in a js string constant,
to be appended into the code to reference it in the string shader.
- Source:
- core/debug.js, line 1
Members
staticconstantshowDebugCross String
Draws an infinite cross. Useful to draw it where the mouse is.
- Source:
- core/debug.js, line 28
Example
import { showDebugCross } from 'points/debug'; // wgsl string ${showDebugCross} let value = showDebugCross(position, color, uvr);
js
staticconstantshowDebugFrame String
Border around the screen
- Source:
- core/debug.js, line 50
Example
import { showDebugFrame } from 'points/debug'; // wgsl string ${showDebugFrame} let value = showDebugFrame(color, uvr);
js