Adding Shader Scripts

Next, let's include the two shaders that we'll need for our application by using the following code:

<script id="vertex-shader" type="x-shader/x-vertex">
#version 300 es
precision mediump float;

void main(void) {}
</script>

<script id="fragment-shader" type="x-shader/x-fragment">
#version 300 es
precision mediump float;

void main(void) {}
</script>

These scripts are placed inside the head of our document.