Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3003


This forum is provided to promote discussion amongst students enrolled in Graphics and Animation (CITS3003).
 
Options:
RSS cloud
Jump to:

Part G

2 of 306 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Thu 23rd Apr 2020, 12:55am
Actions: 
        Login-to-reply

 

When doing calculations in fragment shader rather than vertex shader I am getting the error 'assignment to read-only variable 'color''.
In the declaration I used 'varying vec4 color' but I can't seem to work out why this is saying it is read-only as I thought varying meant the opposite. 
Thank you

Part G

photo
From: Naveed A.
Date: Fri 1st May 2020, 9:46am
Actions: 
        Login-to-reply

 

Can you please attend a Zoom lab for the unit and discuss with the lab facilitator, showing your code. Varying does mean the opposite but the error may be 
resulting from something else.

Regards
Naveed
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  2:34pm Sep 18 2020