Project Rembrandt: Difference between revisions

"error C6013" shouldn't appear because Rembrandt no longer use arrays in fragment shaders for shadows
("error C6013" shouldn't appear because Rembrandt no longer use arrays in fragment shaders for shadows)
Line 235: Line 235:
  RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6
  RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6
  Warning: RenderStage::runCameraSetUp(State&) Pbuffer does not support multiple color outputs.
  Warning: RenderStage::runCameraSetUp(State&) Pbuffer does not support multiple color outputs.
Some card also exhibit messages like this :
glLinkProgram "" FAILED
Program "" infolog:
Fragment info
-------------
0(37) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
0(36) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
0(35) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable
0(34) : error C6013: Only arrays of texcoords may be indexed in this profile, and only with a loop index variable


There is a number of additional options that can help to avoid these problems :
There is a number of additional options that can help to avoid these problems :
Line 257: Line 246:
|-
|-
|<tt>--prop:/sim/rendering/shadows/num-cascades=1</tt>
|<tt>--prop:/sim/rendering/shadows/num-cascades=1</tt>
|Avoid the "error C6013" message on old cards at the cost of resolution in the cockpit. Set <tt>/sim/rendering/shadows/cascade-far-m[0]</tt> to change the shadow map range. The more the range, the less the resolution (default value is 5 meters)
|Set <tt>/sim/rendering/shadows/cascade-far-m[0]</tt> to change the shadow map range. The more the range, the less the resolution (default value is 5 meters)
|-
|-
|<tt>--prop:/sim/rendering/shadows/map-size=<power-of-two></tt>
|<tt>--prop:/sim/rendering/shadows/map-size=<power-of-two></tt>
269

edits