-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Funky Blending layer support #250
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass through
|
||
if layer_props.funky_type != "FunkyDist": | ||
# Mention that values are angles | ||
layout.label("Values should be viewing angles in degrees between 0 and 180.", icon="RESTRICT_VIEW_OFF") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should probably be a separate set of properties that display as angles in the UI. You could have another set of properties as your universal getters. IIRC angle float types in blender return in radians so the export math would be simpler.
korman/exporter/material.py
Outdated
funky_ramp = self.export_funky_slot(bo, bm, hsgmat, slot, idx) | ||
if funky_ramp: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sigh, if we were on Python 3.8 this would be a good place to use the walrus...
else: | ||
buf[start:end] = [b for b in (255, 255, 255, int((x * y) * 255.9))] | ||
|
||
mipmap.setRawImage(bytes(buf)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The C++ uses setImageData
instead of setRawImage
?
To Do