In this tutorial, we´re going to set up the physically based rendering system and learn how to apply a diffuse texture to our 3D objects.
source code: https://github.com/jonathanrydholm/we...
const textureCoords = [
// Front
0.0, 0.0,
1.0, 0.0,
1.0, 1.0,
0.0, 1.0,
// Back
0.0, 0.0,
1.0, 0.0,
1.0, 1.0,
0.0, 1.0,
// Top
0.0, 0.0,
1.0, 0.0,
1.0, 1.0,
0.0, 1.0,
// Bottom
0.0, 0.0,
1.0, 0.0,
1.0, 1.0,
0.0, 1.0,
// Right
0.0, 0.0,
1.0, 0.0,
1.0, 1.0,
0.0, 1.0,
// Left
0.0, 0.0,
1.0, 0.0,
1.0, 1.0,
0.0, 1.0,
];
In questa pagina del sito puoi guardare il video online WebGL React component - EP5 - Texturing della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JR Development 18 dicembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 855 volte e gli è piaciuto 13 spettatori. Buona visione!