Last change
on this file since 35273 was 24646, checked in by vboxsync, 15 years ago |
2d accel:
- performmance: avoid separate drawing of primary surface texture
- profiling: fps counter
- saved state restore fix
- make vhwa command constants values match ddraw contstants
- guest driver: set proper ddRVal in DdUnlock
- guest driver: return proper value in DdDestroySurface
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
446 bytes
|
Line | |
---|
1 | #extension GL_ARB_texture_rectangle : enable
|
---|
2 | uniform sampler2DRect uDstTex;
|
---|
3 | uniform vec4 uDstClr;
|
---|
4 | void vboxCConv();
|
---|
5 | void main(void)
|
---|
6 | {
|
---|
7 | vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[2]));
|
---|
8 | vec3 difClr = dstClr.rgb - uDstClr.rgb;
|
---|
9 | if(any(greaterThan(difClr, vec3(0.01, 0.01, 0.01)))
|
---|
10 | || any(lessThan(difClr, vec3(-0.01, -0.01, -0.01))))
|
---|
11 | {
|
---|
12 | gl_FragColor = dstClr;
|
---|
13 | }
|
---|
14 | else
|
---|
15 | {
|
---|
16 | vboxCConv();
|
---|
17 | }
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.