question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fragColor declared a second time as array in translucent shader

See original GitHub issue

All of a sudden the glsl is declared with

out vec4 fragColor;
out vec4[2] fragColor;

by using this setup

The array field is used, the first one is not.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
luboslencocommented, Aug 1, 2018
0reactions
Disarcommented, Aug 8, 2018

awww yish. Now I just have to fine the correct combinations. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blending - LearnOpenGL
Transparent objects can be completely transparent (letting all colors through) or partially transparent (letting colors through, but also some of its own colors) ......
Read more >
How can I make the FragColor work with alpha?
I'm trying to get the fragment shader to show a png-image with transparency in it. So far I've managed to turn the transparent...
Read more >
Introduction to Computer Graphics, Section 6.2 -- First Examples
A varying variable is assigned a value in the vertex shader, and its value is used in the fragment shader. It looks like...
Read more >
WebGL Fundamentals
Textures are arrays of data you can randomly access in your shader ... The second time a_position.x and a_position.y will be set to...
Read more >
Data Type (GLSL) - OpenGL Wiki - Khronos Group
Variables of opaque types can only be declared in one of two ways. ... In all cases, the array size must be a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found