Hand optimized mod operations for some speedup
This commit is contained in:
parent
8b5011d7ef
commit
fbfcc21fbe
@ -5,7 +5,7 @@
|
||||
// Lastmod : 20110813 (stegu)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
//
|
||||
//
|
||||
|
||||
vec3 mod289(vec3 x) {
|
||||
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// Lastmod : 20110813 (stegu)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
//
|
||||
//
|
||||
|
||||
vec3 mod289(vec3 x) {
|
||||
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// Lastmod : 20110813 (stegu)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
//
|
||||
//
|
||||
|
||||
vec4 mod289(vec4 x) {
|
||||
return x - floor(x * (1.0 / 289.0)) * 289.0; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user