UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

8 lines (6 loc) 191 B
var reflDirPS = ` fn getReflDir(worldNormal: vec3f, viewDir: vec3f, gloss: f32, tbn: mat3x3f) { dReflDirW = normalize(-reflect(viewDir, worldNormal)); } `; export { reflDirPS as default };