summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCsaba Hruska <csaba.hruska@gmail.com>2016-05-13 16:25:24 +0200
committerCsaba Hruska <csaba.hruska@gmail.com>2016-05-13 16:25:38 +0200
commit8ac42fa1bccb554de833ea7d8070cb5112e01aee (patch)
tree8adb969466a3e385b9d7deddd474ecadb50b44b0 /src
parent7310e4916b8ee7d96db0e64e75ab98499a826674 (diff)
add clamp to glsl codegen
Diffstat (limited to 'src')
-rw-r--r--src/LambdaCube/Compiler/CoreToIR.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/LambdaCube/Compiler/CoreToIR.hs b/src/LambdaCube/Compiler/CoreToIR.hs
index 0f0d88b4..6dd39a93 100644
--- a/src/LambdaCube/Compiler/CoreToIR.hs
+++ b/src/LambdaCube/Compiler/CoreToIR.hs
@@ -729,7 +729,6 @@ genGLSL dns e = case e of
729 "RoundEven" -> "roundEven" 729 "RoundEven" -> "roundEven"
730 "ModF" -> error "PrimModF is not implemented yet!" -- TODO 730 "ModF" -> error "PrimModF is not implemented yet!" -- TODO
731 "MixB" -> "mix" 731 "MixB" -> "mix"
732
733 n | n `elem` 732 n | n `elem`
734 -- Logic Functions 733 -- Logic Functions
735 [ "Any", "All" 734 [ "Any", "All"
@@ -738,7 +737,7 @@ genGLSL dns e = case e of
738 -- Exponential Functions 737 -- Exponential Functions
739 , "Pow", "Exp", "Exp2", "Log2", "Sqrt" 738 , "Pow", "Exp", "Exp2", "Log2", "Sqrt"
740 -- Common Functions 739 -- Common Functions
741 , "IsNan", "IsInf", "Abs", "Sign", "Floor", "Trunc", "Round", "Ceil", "Fract", "Min", "Max", "Mix", "Step", "SmoothStep" 740 , "IsNan", "IsInf", "Abs", "Sign", "Floor", "Trunc", "Round", "Ceil", "Fract", "Min", "Max", "Mix", "Clamp", "Step", "SmoothStep"
742 -- Geometric Functions 741 -- Geometric Functions
743 , "Length", "Distance", "Dot", "Cross", "Normalize", "FaceForward", "Reflect", "Refract" 742 , "Length", "Distance", "Dot", "Cross", "Normalize", "FaceForward", "Reflect", "Refract"
744 -- Matrix Functions 743 -- Matrix Functions