Project

General

Profile

Download (21 KB) Statistics
| Branch: | Revision:

library / src / main / res / raw / main_vertex_shader.glsl @ 9b82becd

# Date Author Comment
9b82becd 08/29/2016 06:32 PM Leszek Koltunski

Improvements for WAVE

4fde55a0 08/29/2016 04:51 PM Leszek Koltunski

Beginnings of the WAVE effect.

20af7b69 08/24/2016 09:31 PM Leszek Koltunski

Correct an important bug in the vertex shader.

b = 1/a if a!=0, 1 otherwise was incorrectly computed as b = 1.0 / (a+1.0-sign(a)). This, when 0<a<2^-24, suffers from 'round-off error': then a+1.0 = 1.0 (sic!) thus b = 1/0 !.

Correct way: b = 1.0 / ( a - (sign(a)-1.0) )

77fcb24d 08/11/2016 10:41 PM Leszek Koltunski

Fix for Bug #17: Regions of Fragment Effects migrate.

Fix is: don't send vertex position and the Fragment Effect region to the fragment shader already multiplied by the ModelView matrix (that introduces the imprecise interpolation because of the projection effect) but simply send both of them in local coords.

ff8ad0a7 07/20/2016 11:11 PM Leszek Koltunski

Fix for Bug #16: When rotated at an angle, surfaces get increasingly transparent.

This also fixes the saturation, chroma, alpha + contrast effects, while completely breaking macroblocks :)

30925500 07/17/2016 09:27 PM Leszek Koltunski

Fix for Bug #18: DISTORT effect: disappearing triangles

9420f2fe 07/16/2016 11:14 PM Leszek Koltunski

Fix for Bug 19: SWIRL effect: mess if Center out of Region.

2dacdeb2 06/29/2016 04:15 PM Leszek Koltunski

remove the 'Color' vertex attribute.

cd174a64 06/28/2016 01:01 PM Leszek Koltunski

Make the 'deform' effect continuous when 'center' point passes through (0,0) i.e. middle of the Object.

369ee56a 06/27/2016 10:57 PM Leszek Koltunski

fix in vertex shader

7c227ed2 06/27/2016 12:35 PM Leszek Koltunski

Bugfix in vertex shader (vertices were shot into outer space if P==S, i.e. if center point was exactly equal to the vertex being computed)

341c803d 06/27/2016 12:00 PM Leszek Koltunski

Progress with Vertex3D

0318e7e3 06/24/2016 11:05 AM Leszek Koltunski

Important bugfix in the vertex shader: there was division by 0 in case Center point was on the edge of the Object, resulting in some vertices being shot into outer space.

0df17fad 06/21/2016 01:02 PM Leszek Koltunski

- Javadoc for EffectNames
- make Matrix effects consistent with the rest (center of effect as last parameter!)
- bugfix for yesterday's bugfix (we only want to send 'EFFECT_REMOVED' messages if it was really the Application that called 'abortAll' and not when we are cleaning up everything)

f2fe7e28 06/16/2016 04:21 PM Leszek Koltunski

Major push towards simplifying DistortedObject's public API.
Beginning of work on VERTEX Effects - does not compile ATM!

d333eb6b 06/14/2016 04:24 PM Leszek Koltunski

Add license

6a06a912 05/25/2016 07:45 PM Leszek Koltunski

Initial commit