Skip to content

Commit

Permalink
Fix issue with constant swizzles
Browse files Browse the repository at this point in the history
Fixes: #29
  • Loading branch information
hyazinthh committed Oct 17, 2022
1 parent cbac704 commit 3b7edb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libs/FShade.Core/Shader.fs
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ module Preprocessor =
| _ -> None

let private zeroOneVecProperty =
System.Text.RegularExpressions.Regex @"([XYZW]*[ONIP])+"
System.Text.RegularExpressions.Regex @"^([XYZW]*[OINP]+[XYZW]*)+$"

let rec preprocessNormalS (e : Expr) : Preprocess<Expr> =
state {
Expand Down

0 comments on commit 3b7edb3

Please sign in to comment.