mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Optimize ShaderN64DepthCompare a little bit.
This commit is contained in:
parent
9b487453a6
commit
22267831e0
|
@ -1947,11 +1947,13 @@ public:
|
||||||
{
|
{
|
||||||
if (config.frameBufferEmulation.N64DepthCompare != 0) {
|
if (config.frameBufferEmulation.N64DepthCompare != 0) {
|
||||||
m_part =
|
m_part =
|
||||||
|
"uniform lowp int uEnableDepth; \n"
|
||||||
"uniform lowp int uDepthMode; \n"
|
"uniform lowp int uDepthMode; \n"
|
||||||
"uniform lowp int uEnableDepthUpdate; \n"
|
"uniform lowp int uEnableDepthUpdate; \n"
|
||||||
"uniform mediump float uDeltaZ; \n"
|
"uniform mediump float uDeltaZ; \n"
|
||||||
"bool depth_compare(highp float curZ) \n"
|
"bool depth_compare(highp float curZ) \n"
|
||||||
"{ \n"
|
"{ \n"
|
||||||
|
" if (uEnableDepth == 0) return true; \n"
|
||||||
;
|
;
|
||||||
if (_glinfo.imageTextures) {
|
if (_glinfo.imageTextures) {
|
||||||
m_part +=
|
m_part +=
|
||||||
|
|
Loading…
Reference in New Issue
Block a user