Dies ist das Repository meines kleinen Portfolios.
Im Hintergrund läuft eine Planetensimulation, geschrieben in JavaScript und Three.js.
Die zu sehenden Texturen stammen von:
https://www.solarsystemscope.com/textures/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
374 B
30 lines
374 B
( function () { |
|
|
|
/** |
|
* Simple test shader |
|
*/ |
|
const BasicShader = { |
|
uniforms: {}, |
|
vertexShader: |
|
/* glsl */ |
|
` |
|
|
|
void main() { |
|
|
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); |
|
|
|
}`, |
|
fragmentShader: |
|
/* glsl */ |
|
` |
|
|
|
void main() { |
|
|
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 ); |
|
|
|
}` |
|
}; |
|
|
|
THREE.BasicShader = BasicShader; |
|
|
|
} )();
|
|
|