1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Add half_float to omwfx.rst

This commit is contained in:
Abdu Sharif 2024-07-28 22:29:50 +00:00
parent fc2f30dc4a
commit f9bbbecfab

View File

@ -575,7 +575,7 @@ color buffer will accumulate.
height = 4; height = 4;
source_format = rgb; source_format = rgb;
internal_format = rgb16f; internal_format = rgb16f;
source_type = float; source_type = half_float;
clear_color = vec4(0,0,0,1); clear_color = vec4(0,0,0,1);
} }
@ -615,13 +615,13 @@ Below is an example which calculates a naive average scene luminance and transit
mipmaps = true; mipmaps = true;
source_format = rgb; source_format = rgb;
internal_format = rgb16f; internal_format = rgb16f;
source_type = float; source_type = half_float;
min_filter = linear_mipmap_linear; min_filter = linear_mipmap_linear;
mag_filter = linear; mag_filter = linear;
} }
render_target RT_LumAvg { render_target RT_LumAvg {
source_type = float; source_type = half_float;
source_format = rgb; source_format = rgb;
internal_format = rgb16f; internal_format = rgb16f;
min_filter = nearest; min_filter = nearest;
@ -629,7 +629,7 @@ Below is an example which calculates a naive average scene luminance and transit
} }
render_target RT_LumAvgLastFrame { render_target RT_LumAvgLastFrame {
source_type = float; source_type = half_float;
source_format = rgb; source_format = rgb;
internal_format = rgb16f; internal_format = rgb16f;
min_filter = nearest; min_filter = nearest;
@ -927,6 +927,8 @@ Types
+--------------------+-----------------------+ +--------------------+-----------------------+
| float | GL_FLOAT | | float | GL_FLOAT |
+--------------------+-----------------------+ +--------------------+-----------------------+
| half_float | GL_HALF_FLOAT |
+--------------------+-----------------------+
| double | GL_DOUBLE | | double | GL_DOUBLE |
+--------------------+-----------------------+ +--------------------+-----------------------+