mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 01:56:39 +02:00
build errors
This commit is contained in:
parent
8748a7561b
commit
79dda7a6c7
5 changed files with 2 additions and 7 deletions
|
@ -43,7 +43,6 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
const int NUM_BODY_CONE_SIDES = 9;
|
||||
const float CHAT_MESSAGE_SCALE = 0.0015f;
|
||||
const float CHAT_MESSAGE_HEIGHT = 0.1f;
|
||||
const float DISPLAYNAME_FADE_TIME = 0.5f;
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
#include "RenderPipelines.h"
|
||||
|
||||
#include <DisableDeferred.h>
|
||||
|
||||
//#define SHAPE_ENTITY_USE_FADE_EFFECT
|
||||
#ifdef SHAPE_ENTITY_USE_FADE_EFFECT
|
||||
#include <FadeEffect.h>
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
#include "GLMHelpers.h"
|
||||
|
||||
#include <DisableDeferred.h>
|
||||
|
||||
#include "DeferredLightingEffect.h"
|
||||
|
||||
using namespace render;
|
||||
|
|
|
@ -235,7 +235,7 @@ vec3 fetchLightmapMap(vec2 uv) {
|
|||
<@endfunc@>
|
||||
<@func discardInvisible(opacity)@>
|
||||
{
|
||||
if (<$opacity$> < 1.e-6) {
|
||||
if (<$opacity$> <= 0.0) {
|
||||
discard;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ void packDeferredFragmentUnlit(vec3 normal, float alpha, vec3 color) {
|
|||
}
|
||||
|
||||
void packDeferredFragmentTranslucent(vec3 normal, float alpha, vec3 albedo, float roughness) {
|
||||
if (alpha < 1.e-6) {
|
||||
if (alpha <= 0.0) {
|
||||
discard;
|
||||
}
|
||||
_fragColor0 = vec4(albedo.rgb, alpha);
|
||||
|
|
Loading…
Reference in a new issue