Skip to content

Commit

Permalink
feat: Use detail for VLG with emission
Browse files Browse the repository at this point in the history
  • Loading branch information
koerismo committed Oct 17, 2024
1 parent c185076 commit 84d7f4a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/module/core/vmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,15 @@ def write(*args: str):
' $phongfresnelranges "[0.1 0.8 1.0]"' )

if MaterialMode.has_selfillum(mat.mode):
write( '',
' $selfillum 1',
f' $selfillummask "{mat.name}_emit"')
if MaterialMode.is_vlg(mat.mode):
write( '',
f' $detail "{mat.name}_emit"'
' $detailscale 1',
' $detailblendmode 5')
else:
write( '',
' $selfillum 1',
f' $selfillummask "{mat.name}_emit"')

write('}')
return '\n'.join(vmt)

0 comments on commit 84d7f4a

Please sign in to comment.