mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-03 19:45:24 +00:00
sample surface roughness for diffuse return. 0 means sharpest possible result
This commit is contained in:
parent
bdcb1aaea6
commit
0f5fe527dd
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ float3 boxProject(float3 wsPosition, float3 wsEyeRay, float3 reflectDir, float3
|
|||
float3 iblBoxDiffuse( Surface surface, int id)
|
||||
{
|
||||
float3 cubeN = boxProject(surface.P, surface.V, surface.R, inRefPosArray[id].xyz, bbMinArray[id].xyz, bbMaxArray[id].xyz);
|
||||
return TORQUE_TEXCUBEARRAYLOD(irradianceCubemapAR,cubeN,id,0).xyz;
|
||||
return TORQUE_TEXCUBEARRAYLOD(irradianceCubemapAR,cubeN,id,surface.roughness*cubeMips).xyz;
|
||||
}
|
||||
|
||||
float3 iblBoxSpecular(Surface surface, TORQUE_SAMPLER2D(brdfTexture), int id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue