UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

19 lines (17 loc) 371 B
var gsplatOutputVS = ` #include "tonemappingPS" #include "decodePS" #include "gammaPS" vec3 prepareOutputFromGamma(vec3 gammaColor) { #if TONEMAP == NONE #if GAMMA == NONE return decodeGamma(gammaColor); #else return gammaColor; #endif #else return gammaCorrectOutput(toneMap(decodeGamma(gammaColor))); #endif } `; export { gsplatOutputVS as default };