shader/screen setup fixes
parent
6f6b7f706c
commit
038df5e79d
|
@ -41,15 +41,18 @@ gdepthpackfrag = [
|
||||||
gl_FragData[3].rgb = packdepth;
|
gl_FragData[3].rgb = packdepth;
|
||||||
]]
|
]]
|
||||||
])
|
])
|
||||||
gl_FragData[1].a = @(? $arg1 [ghashdepth lineardepth] (? $arg2 $arg2 [0.0]));
|
gl_FragData[1].a = @(if $arg1 [ghashdepth lineardepth] [? $arg2 $arg2 [0.0]]);
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
msaapackfrag = [gdepthpackfrag $msaasamples $arg1]
|
msaapackfrag = [gdepthpackfrag $msaasamples $arg1]
|
||||||
|
|
||||||
gdepthunpackparams = [
|
gdepthunpackparams = [
|
||||||
result [
|
result [
|
||||||
uniform vec3 gdepthscale;
|
#ifndef GDEPTHUNPACKPARAMS
|
||||||
uniform vec3 gdepthunpackparams;
|
#define GDEPTHUNPACKPARAMS
|
||||||
|
uniform vec3 gdepthscale;
|
||||||
|
uniform vec3 gdepthunpackparams;
|
||||||
|
#endif
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -598,6 +598,7 @@ void setupscreen(int &usedcolorbits)
|
||||||
#endif
|
#endif
|
||||||
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0);
|
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
|
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
|
||||||
|
screen = SDL_SetVideoMode(scr_w, scr_h, hasbpp ? colorbits : 0, SDL_OPENGL|flags);
|
||||||
if(!screen) fatal("Unable to create OpenGL screen: %s", SDL_GetError());
|
if(!screen) fatal("Unable to create OpenGL screen: %s", SDL_GetError());
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue