Skip to content

Conversation

@DolaMay
Copy link
Contributor

@DolaMay DolaMay commented Jan 7, 2022

Re: cocos-creator/3d-tasks#

Changelog:
*

@github-actions
Copy link

github-actions bot commented Jan 7, 2022

Interface Check Report

! WARNING this pull request has changed these public interfaces:

@@ -23748,9 +23748,16 @@
                 format: number;
                 location: number;
             }[];
             blocks: never[];
-            samplerTextures: never[];
+            samplerTextures: {
+                name: string;
+                type: number;
+                count: number;
+                defines: never[];
+                stageFlags: number;
+                binding: number;
+            }[];
             buffers: {
                 name: string;
                 memoryAccess: number;
                 defines: string[];

// fixme: default value is 0, and give black result
float fogFactor;
CC_TRANSFER_FOG_BASE(vec4(position, 1), fogFactor);
CC_TRANSFER_FOG_BASE(vec4(s.position, 1), fogFactor);
Copy link
Contributor

@jk20012001 jk20012001 Jan 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不要往s结构体里填position然后又取出来用,安卓浏览器上会精度全丢的, 直接用vec3 position=screen2WS(vec3(gl_FragCoord.xy, depth)).xyz; 后面统一用这个position

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted

@pandamicro pandamicro merged commit c6cda96 into cocos:v3.4.1 Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants