UNPKG

gpu-curtains

Version:

gpu-curtains is a 3D WebGPU rendering engine. It can be used as a standalone 3D engine, but also includes extra classes focused on mapping 3d objects to DOM elements; It allows users to synchronize values such as position, sizing, or scale between them.

9 lines (8 loc) 302 B
//#region src/core/shaders/full/fragment/get-default-fragment-code.ts /** Default fragment shader code that outputs only black pixels. */ const getDefaultFragmentCode = ` @fragment fn main() -> @location(0) vec4f { return vec4(0.0, 0.0, 0.0, 1.0); }`; //#endregion export { getDefaultFragmentCode };