Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Can you get the current shader source without programmable pipeline?

$
0
0

@hamoid wrote:

Hi! I’d like to make changes to the default shader currently being used. I would like to save the vert + frag source to a text file, make changes, then use my modified versions.

The programmable renderer offers getCurrentShader() but I think ofGLRenderer doesn’t.

How can I get the shader sources currently in use? Maybe logging them at the bottom of ofMaterial::initShaders() ?

Update: by studying the code I get the impression ofMaterial is for programmable renderer only. Is that the case?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images