mirror of https://github.com/xemu-project/xemu.git
Fix HiLo-Hemi texture cubemap pgraph test
This commit is contained in:
parent
86344a8543
commit
cfd5163928
|
@ -815,14 +815,17 @@ static MString* psh_convert(struct PixelShader *ps)
|
|||
" float lo_f = float(lo_i) / float(0xffff);\n"
|
||||
" return vec3(hi_f, lo_f, 1.0);\n"
|
||||
"}\n"
|
||||
"vec3 dotmap_hilo_hemisphere_d3d(vec4 col) {\n"
|
||||
" return col.rgb;\n" // FIXME
|
||||
"vec3 dotmap_hilo_hemisphere(vec4 col) {\n"
|
||||
" uvec4 _col = uvec4(col * 255);\n"
|
||||
" vec2 hilo = vec2(_col.a << 8 | _col.r, _col.g << 8 | _col.b);\n"
|
||||
" hilo = (hilo - 65536.0f*step(32767.5f, hilo)) / 32767.0f;\n"
|
||||
" return vec3(hilo, sqrt(max(1.0f - dot(hilo, hilo), 0.0f)));\n"
|
||||
"}\n"
|
||||
"vec3 dotmap_hilo_hemisphere_gl(vec4 col) {\n"
|
||||
" return col.rgb;\n" // FIXME
|
||||
" return dotmap_hilo_hemisphere(col);\n"
|
||||
"}\n"
|
||||
"vec3 dotmap_hilo_hemisphere(vec4 col) {\n"
|
||||
" return col.rgb;\n" // FIXME
|
||||
"vec3 dotmap_hilo_hemisphere_d3d(vec4 col) {\n"
|
||||
" return dotmap_hilo_hemisphere(col);\n"
|
||||
"}\n"
|
||||
"const float[9] gaussian3x3 = float[9](\n"
|
||||
" 1.0/16.0, 2.0/16.0, 1.0/16.0,\n"
|
||||
|
|
Loading…
Reference in New Issue