mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 01:12:53 +02:00
glsl initializer lists are 4.2
This commit is contained in:
parent
da7cd6b2f7
commit
5b1ea24d20
1 changed files with 3 additions and 3 deletions
|
@ -92,10 +92,10 @@ void main(void) {
|
|||
emissive = vec3(clamp(emissiveAmount, 0.0, 1.0));
|
||||
#elif defined(PROCEDURAL_V3) || defined(PROCEDURAL_V4)
|
||||
#if defined(PROCEDURAL_V3)
|
||||
ProceduralFragment proceduralData = {
|
||||
ProceduralFragment proceduralData = ProceduralFragment(
|
||||
#else
|
||||
vec4 position = cam._viewInverse * _positionES;
|
||||
ProceduralFragmentWithPosition proceduralData = {
|
||||
ProceduralFragmentWithPosition proceduralData = ProceduralFragmentWithPosition(
|
||||
position.xyz,
|
||||
#endif
|
||||
normal,
|
||||
|
@ -107,7 +107,7 @@ void main(void) {
|
|||
DEFAULT_METALLIC,
|
||||
DEFAULT_OCCLUSION,
|
||||
DEFAULT_SCATTERING
|
||||
};
|
||||
);
|
||||
|
||||
#if defined(PROCEDURAL_V3)
|
||||
emissiveAmount = getProceduralFragment(proceduralData);
|
||||
|
|
Loading…
Reference in a new issue