mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
OSX compilation
This commit is contained in:
@@ -55,11 +55,11 @@ void main()
|
|||||||
vec3 color = texture(iChannel0, vertexUV).rgb; // raw color
|
vec3 color = texture(iChannel0, vertexUV).rgb; // raw color
|
||||||
|
|
||||||
// clear
|
// clear
|
||||||
color += mix(vec3(0), vec3(1) - color, effect == 1);
|
color += mix(vec3(0), vec3(1) - color, int(effect == 1));
|
||||||
// invert
|
// invert
|
||||||
color = mix(color, vec3(1) - color, effect == 2);
|
color = mix(color, vec3(1) - color, int(effect == 2));
|
||||||
// step edge
|
// step edge
|
||||||
color = mix(color, vec3(1.0 - step(dot(color, vec3(1.0/3.0)), 0.6)), effect == 3);
|
color = mix(color, vec3(1.0 - step(dot(color, vec3(1.0/3.0)), 0.6)), int(effect == 3));
|
||||||
|
|
||||||
if ( option > 0 ) {
|
if ( option > 0 ) {
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
#define TINYXML2TOOLKIT_H
|
#define TINYXML2TOOLKIT_H
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
namespace tinyxml2 {
|
namespace tinyxml2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user