Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ソースコードの間違い #20023

Open
yat8823jp opened this issue May 4, 2024 · 0 comments
Open

ソースコードの間違い #20023

yat8823jp opened this issue May 4, 2024 · 0 comments
Labels
l10n-ja Issues related to Japanese content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@yat8823jp
Copy link

MDN URL

https://developer.mozilla.org/ja/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL

この問題に関する節や見出しはどこですか。

フラグメントシェーダー

不完全、不親切、不完全であった情報は何ですか。

const fsSource = `
varying highp vec2 vTextureCoord;

uniform sampler2D uSampler;
out vec4 fragColor;

void main(void) {
  fragColor = texture(uSampler, vTextureCoord);
}

`;

どう表示されるべきだと思いますか。

const fsSource = `
varying highp vec2 vTextureCoord;

uniform sampler2D uSampler;

void main(void) {
gl_FragColor = texture2D(uSampler, vTextureCoord);
}
`;

補足情報となるリンク、参考資料、引用文献はありますか。

https://github.com/mdn/dom-examples/blob/main/webgl-examples/tutorial/sample6/webgl-demo.js

他に共有したいことはありますか。

GitHub のソースコードと解説のコードが違っているため正しく挙動したなったため、こちら調整をお願いします
GitHub のコードであれば問題なく動きました

MDN metadata

Page report details
@yat8823jp yat8823jp added l10n-ja Issues related to Japanese content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ja Issues related to Japanese content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant