Post: [SOLVED]Shader Queries
08-10-2016, 08:34 PM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all - just a couple of questions regarding shaders;

1. Is there a way to change the transparency of the shader. I have the normal drawShader("white", 360, -50, 100, 500, (0, 0, 0), 1, 0);

2. Is the alpha arg a bool? I ask as theres a difference between 0 & 1, but anything after that doesn't make a difference

3. What is the sort arg? what does it do? I have tried messing with it but nothing seems to happen

Thanks
Last edited by seanhellen ; 08-10-2016 at 11:07 PM.
08-10-2016, 08:54 PM #2
xSynthmodz
Do a barrel roll!
oooops
Last edited by xSynthmodz ; 08-10-2016 at 09:05 PM.
08-10-2016, 09:02 PM #3
anthonything
Space Ninja
Originally posted by seanhellen View Post
Hi all - just a couple of questions regarding shaders;

1. Is there a way to change the transparency of the shader. I have the normal drawShader("white", 360, -50, 100, 500, (0, 0, 0), 1, 0);

2. Is the alpha arg a bool? I ask as theres a difference between 0 & 1, but anything after that doesn't make a difference

3. What is the sort arg? what does it do? I have tried messing with it but nothing seems to happen

Thanks


Alpha, r, g, and b are all floats. Range 0.0000 to 1.000, Sort is the layer it is in. Dvars are nothing to do with it so whatever that guy said is irrelevant.
08-10-2016, 09:02 PM #4
anthonything
Space Ninja
Originally posted by xSynthmodz View Post
search up shader dvars, you will be able to find a transparnet shader there


Not even close.
08-10-2016, 10:58 PM #5
seanhellen
Are you high?
Originally posted by anthonything View Post
Alpha, r, g, and b are all floats. Range 0.0000 to 1.000, Sort is the layer it is in. Dvars are nothing to do with it so whatever that guy said is irrelevant.


That explains it. Thanks :yes:
Any ideas on transparency or is that something alpha would take care of...thinking about it thats prob why the shader disappears with alpha set to 0...maybe if i play with that, itll help. Set it to 0.5 or something Happy
Last edited by seanhellen ; 08-10-2016 at 11:01 PM.
08-10-2016, 11:01 PM #6
anthonything
Space Ninja
Originally posted by seanhellen View Post
That explains it. Thanks :yes:
Any ideas on transparency? i know it sounds strange but im building something and i have a black rectangle round the screen edge and it would look better if it was slightly transparent rather than a full-solid black


You must login or register to view this content.
08-10-2016, 11:04 PM #7
seanhellen
Are you high?
Originally posted by anthonything View Post
You must login or register to view this content.


And there we go. Thanks for clearing that up Happy
I didnt realise at 1st the alpha max was 1. Explains why anything bigger didnt do anything lol

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo