Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Set Effect Constant Vector Element for GDK

Author
Message
Fallout
21
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 8th May 2012 15:21 Edited at: 8th May 2012 15:22
Just thought I'd post this up. DBP is missing the Set Effect Constant Vector Element and object effect locking commands. You need this to set values for arrays in your shaders.

After some Googling I found a 2 year old post from Mista Wilson which showed where to find the object effect data. So now I can finally set arrays, rather than passing in a stupid number of vectors for my 8 positional lights.

Thought I'd post up my function to help people out who may also be passing in excess variables because they can't pass in arrays. It'll need modifying if you are using arrays different from 8xVector4.



Login to post a reply

Server time is: 2024-04-25 00:53:03
Your offset time is: 2024-04-25 00:53:03