Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
i tryed the test code in coppercube documation and had the cubeMesh1 on scene but it does not brighten any idea why? i used the opengl version trying to learn more about shaders var vertexShader = |
||||
|
Well, that’s not surprising - you’re not actually doing anything to change the color in the shader… For example, if you want to adjust the brightness, you could do something like change this line: gl_FragColor = col; to gl_FragColor = col * 2; which will make it brighter, or gl_FragColor = col / 2; which will make it darker. |
||||
|
thanks wings for your help but i get this error shader failed to compile error could not implicity convert operand to arithmetic operator |
||||
|
no worries i got it to work |
||||
|
I suggest you get help from Chat GPT to create a CopperCube shader. I managed to create several good shaders. |
||||
|
That's cool alireza, which shaders could you create? |
||||
|
Sike wrote: That's cool alireza, which shaders could you create? I have been able to create a number of shaders for WebGL, such as animated shadows (without using the engine's default shadows), torchlight, metal glow, etc. |
||||
|
Mmmm, thats brilliant Do you mind sharing with community or displaying it in work visually, I would love to see it? |
||||
|
Sikes wrote: Mmmm, thats brilliant Do you mind sharing with community or displaying it in work visually, I would love to see it? I will send ccb file source to you. Are you in discord? |
||||
|
thanks for the suggestion Alireza |
||||
|
guest_coa wrote: thanks for the suggestion Alireza Your welcome. To request GPT Chat to write a shader, because CopperCube is not a well-known engine, it may give you wrong codes at first. It is better to send it one of the shader examples from the Ambeira site so that it can understand what the CopperCube shader framework is like by examining it and then request the shader and features you want from it. |
||||
|
Yes, alireza I'm on discord, I've texted you right now |
||||
|
Sikes wrote: Yes, alireza I'm on discord, I've texted you right now I didn't receive a message. Are you sure you sent it correctly? My username there is aki. |
||||
|
|