Correct extension handling in the urban fragment shader.
This commit is contained in:
parent
65552ff537
commit
8eaedfae57
2 changed files with 37 additions and 24 deletions
|
@ -48,6 +48,7 @@
|
|||
<value type="float">4.0</value>
|
||||
<float-property>/sim/rendering/shaders/urban</float-property>
|
||||
</less-equal>
|
||||
<and>
|
||||
<or>
|
||||
<less-equal>
|
||||
<value type="float">2.0</value>
|
||||
|
@ -60,6 +61,11 @@
|
|||
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
||||
</and>
|
||||
</or>
|
||||
<or>
|
||||
<extension-supported>GL_ATI_shader_texture_lod</extension-supported>
|
||||
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
||||
</or>
|
||||
</and>
|
||||
</and>
|
||||
</predicate>
|
||||
<pass>
|
||||
|
@ -289,6 +295,7 @@
|
|||
<value type="float">2.0</value>
|
||||
<float-property>/sim/rendering/shaders/quality-level</float-property>
|
||||
</less-equal>
|
||||
<and>
|
||||
<or>
|
||||
<less-equal>
|
||||
<value type="float">2.0</value>
|
||||
|
@ -301,6 +308,11 @@
|
|||
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
||||
</and>
|
||||
</or>
|
||||
<or>
|
||||
<extension-supported>GL_ATI_shader_texture_lod</extension-supported>
|
||||
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
||||
</or>
|
||||
</and>
|
||||
</and>
|
||||
</predicate>
|
||||
<pass>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#version 120
|
||||
|
||||
#extension GL_ATI_shader_texture_lod : enable
|
||||
#extension GL_ARB_shader_texture_lod : enable
|
||||
|
||||
#define TEXTURE_MIP_LEVELS 10
|
||||
#define TEXTURE_PIX_COUNT 1024 //pow(2,TEXTURE_MIP_LEVELS)
|
||||
|
|
Loading…
Reference in a new issue