anime4k如何用标准的opengl实现啊 #618
ZadeAo
started this conversation in
Dev Channel
Replies: 1 comment 2 replies
|
我猜是纹理格式问题,我们使用的是 R16G16B16A16_FLOAT。 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
我使用framebuffer作为保存各层卷积层的输出。原始的glsl文件中的#define go_1(x_off, y_off) (max(-(conv2d_tf_texOff(vec2(x_off, y_off))), 0.0))。go_1 被我翻译成max(-texture2D(tex0, vec2(tc.x+offsetXimageWidthFactor,tc.y+offsetYimageHeightFactor)),0.0),结果明显永远返回是黑色,因为texture2D返回的0-1范围的4维向量,求正确做法是啥
All reactions