stig-atle / io_scene_pbrt

Exporter for blender that exports the scene into pbrt's ascii file format.
59 stars 16 forks source link

Material & Cycle emission #26

Closed beltegeuse closed 4 years ago

beltegeuse commented 4 years ago

Hi,

This pull request contains a small fix in the material export. Indeed, it seems that the current implementation is cannot export shape that does not have assigned material.

The second modification is about how emitters are handled: Here I add the (crude) support of shader emission from Cycle. The code is quite simple as it assumes that the input is a color (rgb), not a texture.

Cheers, Adrien

stig-atle commented 4 years ago

Thank you for taking the time to make the pull request, I appreciate it a lot!