VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/shaders/mainOverlayNoDiscard2.c@ 33330

最後變更 在這個檔案從33330是 24646,由 vboxsync 提交於 15 年 前

2d accel:

  1. performmance: avoid separate drawing of primary surface texture
  2. profiling: fps counter
  3. saved state restore fix
  4. make vhwa command constants values match ddraw contstants
  5. guest driver: set proper ddRVal in DdUnlock
  6. guest driver: return proper value in DdDestroySurface
  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 446 位元組
 
1#extension GL_ARB_texture_rectangle : enable
2uniform sampler2DRect uDstTex;
3uniform vec4 uDstClr;
4void vboxCConv();
5void 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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette