Page MenuHome

Added material object to uniforms from gpu.export_shader

Authored by Sebastian Ullrich (souljedi) on Aug 10 2015, 3:11 PM.



Light related uniforms (GPU_DYNAMIC_LAMP... types etc) already have a reference to the according lamp object. With this patch I added the same for material related uniforms (GPU_DYNAMIC_MAT_...). This is needed for exporters that are accessing the uniforms via the python interface. I already tested it with an exented version of the X3D exporter, which i will submit via patches as well.

This is my first patch here, so excuse me if i file it in the wrong sections etc.

Diff Detail

rB Blender

Event Timeline

Sebastian Ullrich (souljedi) retitled this revision from to Added material object to uniforms from gpu.export_shader.
Sebastian Ullrich (souljedi) updated this object.
Sebastian Ullrich (souljedi) set the repository for this revision to rB Blender.

@Antonis Ryakiotakis (psy-fi) is this something you are familiar with? The patch seems harmless nevertheless (and it's required for an upcoming upgraded x3d exporter).

any chances this could still make it into the upcoming 2.76 release?

Not so close to release, no.

So, the release is out for a while now. Any chances of getting this in now?

Hi, I'm still waiting for this to get reviewed. Since i submitted it, there were already several new releases...

Let me know if there is anything I can do to get this finally merged?

This revision was automatically updated to reflect the committed changes.

Committed now, thanks for the patch!