mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 08:18:05 +02:00
glsl initializer lists are 4.2
This commit is contained in:
parent
835615fbbd
commit
a25c9395b3
1 changed files with 3 additions and 3 deletions
|
@ -83,11 +83,11 @@ 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
|
||||
TransformCamera cam = getTransformCamera();
|
||||
vec4 position = cam._viewInverse * _positionES;
|
||||
ProceduralFragmentWithPosition proceduralData = {
|
||||
ProceduralFragmentWithPosition proceduralData = ProceduralFragmentWithPosition(
|
||||
position.xyz,
|
||||
#endif
|
||||
normal,
|
||||
|
@ -99,7 +99,7 @@ void main(void) {
|
|||
DEFAULT_METALLIC,
|
||||
DEFAULT_OCCLUSION,
|
||||
DEFAULT_SCATTERING
|
||||
};
|
||||
);
|
||||
|
||||
#if defined(PROCEDURAL_V3)
|
||||
emissiveAmount = getProceduralFragment(proceduralData);
|
||||
|
|
Loading…
Reference in a new issue