Visualisierung 2
Comparison of Hue Preserving Rendering to Alpha Composing
hue.frag File Reference

Go to the source code of this file.

Functions

vec3 rgb2hsv (vec3 c)
 
vec3 hsv2rgb (vec3 c)
 
bool equalHue (vec3 color1, vec3 color2)
 
vec3 oppositeColor (vec3 color1, vec3 color2)
 
vec3 huePreservingBlending (vec4 color1, vec4 color2)
 
void main ()
 

Variables

out vec4 color
 
in vec3 position
 
uniform sampler3D volume
 
uniform float regionSeperator
 
uniform int depth
 
uniform int width
 
uniform int height
 
uniform vec4 regionColor1
 
uniform vec4 regionColor2
 
uniform int orientation
 

Function Documentation

◆ equalHue()

bool equalHue ( vec3  color1,
vec3  color2 
)

Definition at line 47 of file hue.frag.

◆ hsv2rgb()

vec3 hsv2rgb ( vec3  c)

Definition at line 39 of file hue.frag.

◆ huePreservingBlending()

vec3 huePreservingBlending ( vec4  color1,
vec4  color2 
)

Definition at line 72 of file hue.frag.

◆ main()

void main ( )

Definition at line 88 of file hue.frag.

◆ oppositeColor()

vec3 oppositeColor ( vec3  color1,
vec3  color2 
)

Definition at line 58 of file hue.frag.

◆ rgb2hsv()

vec3 rgb2hsv ( vec3  c)

Definition at line 28 of file hue.frag.

Variable Documentation

◆ color

out vec4 color

Definition at line 14 of file hue.frag.

◆ depth

uniform int depth

Definition at line 20 of file hue.frag.

◆ height

uniform int height

Definition at line 22 of file hue.frag.

◆ orientation

uniform int orientation

Definition at line 25 of file hue.frag.

◆ position

in vec3 position

Definition at line 16 of file hue.frag.

◆ regionColor1

uniform vec4 regionColor1

Definition at line 23 of file hue.frag.

◆ regionColor2

uniform vec4 regionColor2

Definition at line 24 of file hue.frag.

◆ regionSeperator

uniform float regionSeperator

Definition at line 19 of file hue.frag.

◆ volume

uniform sampler3D volume

Definition at line 18 of file hue.frag.

◆ width

uniform int width

Definition at line 21 of file hue.frag.