Document support limitations for OmniLight cubemap shadows in GLES2
This commit is contained in:
parent
51e2c1990a
commit
b03ceaba2f
|
@ -23,7 +23,8 @@
|
|||
See [enum ShadowDetail].
|
||||
</member>
|
||||
<member name="omni_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" enum="OmniLight.ShadowMode" default="1">
|
||||
See [enum ShadowMode].
|
||||
The shadow rendering mode to use for this [OmniLight]. See [enum ShadowMode].
|
||||
[b]Note:[/b] In GLES2, [constant SHADOW_CUBE] is only supported on GPUs that feature support for depth cubemaps. Old GPUs such as the Radeon HD 4000 series don't support cubemap shadows and will fall back to dual paraboloid shadows as a result.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
@ -31,7 +32,7 @@
|
|||
Shadows are rendered to a dual-paraboloid texture. Faster than [constant SHADOW_CUBE], but lower-quality.
|
||||
</constant>
|
||||
<constant name="SHADOW_CUBE" value="1" enum="ShadowMode">
|
||||
Shadows are rendered to a cubemap. Slower than [constant SHADOW_DUAL_PARABOLOID], but higher-quality.
|
||||
Shadows are rendered to a cubemap. Slower than [constant SHADOW_DUAL_PARABOLOID], but higher-quality. Only supported on GPUs that feature support for depth cubemaps.
|
||||
</constant>
|
||||
<constant name="SHADOW_DETAIL_VERTICAL" value="0" enum="ShadowDetail">
|
||||
Use more detail vertically when computing the shadow.
|
||||
|
|
|
@ -6393,6 +6393,9 @@ void RasterizerStorageGLES2::initialize() {
|
|||
|
||||
//picky requirements for these
|
||||
config.support_shadow_cubemaps = config.support_depth_texture && config.support_write_depth && config.support_depth_cubemaps;
|
||||
if (!config.support_shadow_cubemaps) {
|
||||
print_verbose("OmniLight cubemap shadows are not supported by this GPU. Falling back to dual paraboloid shadows for all omni lights (faster but less precise).");
|
||||
}
|
||||
|
||||
frame.count = 0;
|
||||
frame.delta = 0;
|
||||
|
|
Loading…
Reference in New Issue