Skip to content

shininess is not working in WGLMakie #4060

@gdkrmr

Description

@gdkrmr

The following code produces a Javascript error in WGLMakie:

julia> using WGLMakie

julia> using FileIO

julia> brain = load(assetpath("brain.stl"));

julia> mesh(
           brain,
           color = [tri[1][2] for tri in brain for i in 1:3],
           colormap = Reverse(:Spectral),
           shininess = 64.0
       );

julia> mesh(
           brain,
           color = [tri[1][2] for tri in brain for i in 1:3],
           colormap = Reverse(:Spectral),
           shininess = 64.0
       )
┌ Warning: Error in Javascript: THREE.WebGLProgram: Shader Error No error - VALIDATE_STATUS false
│ 
│ Program Info Log:
│ Must have a compiled vertex shader attached:
│ SHADER_INFO_LOG:
│ ERROR: 0:43: 'double' : Illegal use of reserved word
│ ERROR: 0:43: 'double' : syntax error
│ VERTEX
│ 
│ ERROR: 0:43: 'double' : Illegal use of reserved word
│ ERROR: 0:43: 'double' : syntax error
│ 
│   38: vec3 get_ambient(){return ambient;}
│   39: uniform mat3 normalmatrix;
│   40: mat3 get_normalmatrix(){return normalmatrix;}
│   41: uniform vec4 nan_color;
│   42: vec4 get_nan_color(){return nan_color;}
│ > 43: uniform double shininess;
│   44: double get_shininess(){return shininess;}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    MakieBackend independent issues (Makie core)bugconversionsMainly `convert_arguments`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions