fix cropped issue
This commit is contained in:
parent
6de7bb89a2
commit
2c8d9789de
3 changed files with 5 additions and 2 deletions
|
@ -105,6 +105,8 @@ void main() {
|
||||||
gl_FragColor = vec4(dispColor, 1.0);
|
gl_FragColor = vec4(dispColor, 1.0);
|
||||||
gl_FragColor += pointCloudColor; // not good
|
gl_FragColor += pointCloudColor; // not good
|
||||||
|
|
||||||
|
// gl_FragColor = texture2D(u_depth, st) * 100;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
|
@ -10,5 +10,6 @@ in vec2 gTexCoord;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_FragColor = texture2D(uColorTex, gTexCoord);
|
// gl_FragColor = texture2D(uColorTex, gTexCoord);
|
||||||
|
gl_FragColor = vec4(1);
|
||||||
}
|
}
|
|
@ -21,7 +21,7 @@ flat out int vValid;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vTexCoord = vec2(gl_InstanceID % uFrameSize.x, gl_InstanceID / uFrameSize.x)/u_resolution;
|
vTexCoord = vec2(gl_InstanceID % uFrameSize.x, gl_InstanceID / uFrameSize.x)/vec2(512,424);
|
||||||
|
|
||||||
float depth = texture2D(uDepthTex, vTexCoord).x;
|
float depth = texture2D(uDepthTex, vTexCoord).x;
|
||||||
vec4 ray = texture2D(uWorldTex, vTexCoord);
|
vec4 ray = texture2D(uWorldTex, vTexCoord);
|
||||||
|
|
Loading…
Reference in a new issue