mirror of
https://github.com/ApfelTeeSaft/lightspeed64.git
synced 2026-08-26 19:33:24 +00:00
Fixed bug with clamped textures in preview.
This commit is contained in:
@@ -709,7 +709,7 @@ def update_tex_values_field(self, fieldProperty, texCoordNode, pixelLength,
|
||||
texCoordNode['Normalized L'].outputs[0].default_value = L / pixelLength
|
||||
texCoordNode['Normalized H'].outputs[0].default_value = (H + 1)/pixelLength
|
||||
texCoordNode['Normalized Mask'].outputs[0].default_value = \
|
||||
(2 ** mask) / pixelLength if mask > 0 else 0
|
||||
(2 ** mask) / pixelLength if mask > 0 else 1024 # sorta hacky, this is the max UV value
|
||||
|
||||
texCoordNode['Shift'].outputs[0].default_value = shift
|
||||
texCoordNode['Scale'].outputs[0].default_value = scale * uvBasisScale
|
||||
|
||||
Reference in New Issue
Block a user