Sha256: 4c5f5aa1fcf3749aef19190eb91c8251a93d55a0bd472cc3dfa81ea9c30be2a8
Contents?: true
Size: 474 Bytes
Versions: 15
Compression:
Stored size: 474 Bytes
Contents
uniform samplerCube cubeMap; czm_material czm_getMaterial(czm_materialInput materialInput) { czm_material material = czm_getDefaultMaterial(materialInput); vec3 normalWC = normalize(czm_inverseViewRotation * material.normal); vec3 positionWC = normalize(czm_inverseViewRotation * materialInput.positionToEyeEC); vec3 reflectedWC = reflect(positionWC, normalWC); material.diffuse = textureCube(cubeMap, reflectedWC).channels; return material; }
Version data entries
15 entries across 15 versions & 1 rubygems