getAttributes( shaderStage ) {

		let snippet = '';

		if ( shaderStage === 'vertex' || shaderStage === 'compute' ) {

			const attributes = this.getAttributesArray();

			let location = 0;

			for ( const attribute of attributes ) {

				snippet += `layout( location = ${ location ++ } ) in ${ attribute.type } ${ attribute.name };\n`;

			}

		}

		return snippet;

	}
Returns the shader attributes of the given shader stage as a GLSL string.

@param {string} shaderStage - The shader stage.
@return {string} The GLSL snippet that defines the shader attributes.