playcanvas / engine

JavaScript game engine built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.44k stars 1.32k forks source link

Shader precision optimizations #3541

Open mvaligursky opened 2 years ago

mvaligursky commented 2 years ago

Optimize shaders in the engine to use half precision when full float is not required, to optimize fragment shader performance.

There's an unfinished PR related to this: https://github.com/playcanvas/engine/pull/2972

original ticket: https://github.com/playcanvas/engine/issues/2596

mvaligursky commented 2 years ago

related: https://github.com/playcanvas/engine/issues/2596