Skip to content

aframe-sun-sky broken in A-Frame 1.7.0 #349

Description

@crcdng

Note: this is a new bug (not the previous ones reported for aframe-sun-sky); the component works in A-Frame 1.6.0

<a-sun-sky
        id="sun"
        material="sunPosition: -0.2 20.1 -5; side: back"
      ></a-sun-sky>

results in:


Material Name: 
Material Type: ShaderMaterial

Program Info Log: Fragment shader is not compiled.
�

FRAGMENT

ERROR: 0:65: 'luminance' : redefinition
ERROR: 0:206: 'luminance' : variable expected
WARNING: 0:206: '/' : Divide by zero during constant folding
ERROR: 0:211: 'luminance' : variable expected
WARNING: 0:211: '/' : Divide by zero during constant folding
�

  60: uniform vec3 sunPosition;
  61: varying vec3 vWorldPosition;
  62: 
  63: vec3 cameraPos = vec3(0., 0., 0.);
  64: 
> 65: uniform float luminance;
  66: uniform float turbidity;
  67: uniform float reileigh;
  68: uniform float mieCoefficient;
  69: uniform float mieDirectionalG;
  70: 
  71: // constants for atmospheric scattering
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions