Shader help: Passing a matrix into a shader?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Shader help: Passing a matrix into a shader?
Okay, basically I'm trying to tweak my textured polygon shader (written by xXxMoNkEyMaNxXx and used by many here) to allow for color shading. I already have that working though. But what I want to do is have the option to dither the overlaying color. Basically having a matrix that is a table of 1s and 0s that the shader can grab from to determine whether to shade the current pixel with the overlaying color or just display the color as normal. I have no idea how to send a matrix/multi-dimensional table into a shader though.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 55 guests