Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1232
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Charlie Jolly (charlie)
on Jan 28 2020, 10:34 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/intern/cycles/kernel/shaders/node_vector_math.osl b/intern/cycles/kernel/shaders/node_vector_math.osl
index fd5e27aa144..4fa9b3bb57b 100644
--- a/intern/cycles/kernel/shaders/node_vector_math.osl
+++ b/intern/cycles/kernel/shaders/node_vector_math.osl
@@ -92,7 +92,7 @@ shader node_vector_math(string type = "add",
Vector = ceil(Vector1);
}
else if (type == "modulo") {
- Vector = mod(Vector1, Vector2);
+ Vector = fmod(Vector1, Vector2);
}
else if (type == "fraction") {
Vector = Vector1 - floor(Vector1);
Event Timeline
Charlie Jolly (charlie)
created this paste.
Jan 28 2020, 10:34 PM
Charlie Jolly (charlie)
mentioned this in
T73470: Fix T73469: OSL: Vector Math Node modulo uses wrong function
.
Charlie Jolly (charlie)
mentioned this in
T73469: OSL: Vector Math Node modulo uses wrong function
.
Log In to Comment