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,
];
En esta página del sitio puede ver el video en línea WebGL React component - EP5 - Texturing de Duración hora minuto segunda en buena calidad , que subió el usuario JR Development 18 diciembre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 855 veces y le gustó 13 a los espectadores. Disfruta viendo!