mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
maybe ready for master
This commit is contained in:
parent
a649d9edb0
commit
3ad7bdc79e
2 changed files with 3 additions and 7 deletions
|
@ -3302,7 +3302,7 @@ void Application::displaySide(Camera& theCamera, bool selfAvatarOnly, RenderArgs
|
|||
skybox = skyStage->getSkybox();
|
||||
if (skybox) {
|
||||
gpu::Batch batch;
|
||||
model::Skybox::render(batch, _viewFrustum, *skybox);
|
||||
model::Skybox::render(batch, *getDisplayViewFrustum(), *skybox);
|
||||
|
||||
gpu::GLBackend::renderBatch(batch);
|
||||
glUseProgram(0);
|
||||
|
|
|
@ -43,12 +43,8 @@ void packDeferredFragment(vec3 normal, float alpha, vec3 diffuse, vec3 specular,
|
|||
discard;
|
||||
}
|
||||
gl_FragData[0] = vec4(diffuse.rgb, alpha);
|
||||
if ( gl_FragCoord.x > 1024) {
|
||||
gl_FragData[1] = vec4(normal * 0.5 + vec3(0.5), 1.0);
|
||||
} else {
|
||||
gl_FragData[1] = vec4(bestFitNormal(normal), 1.0);
|
||||
}
|
||||
gl_FragData[2] = vec4(specular, shininess / 100.0);
|
||||
gl_FragData[1] = vec4(bestFitNormal(normal), 1.0);
|
||||
gl_FragData[2] = vec4(specular, shininess / 128.0);
|
||||
}
|
||||
|
||||
void packDeferredFragmentLightmap(vec3 normal, float alpha, vec3 diffuse, vec3 specular, float shininess, vec3 emissive) {
|
||||
|
|
Loading…
Reference in a new issue