Просмотр исходного кода

Update deferred_shading.vs for GLES3

pull/4705/head
MikiZX1 1 год назад
committed by GitHub
Родитель
Сommit
135630f645
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 8 добавлений и 11 удалений
  1. +8
    -11
      examples/shaders/resources/shaders/glsl100/deferred_shading.vs

+ 8
- 11
examples/shaders/resources/shaders/glsl100/deferred_shading.vs Просмотреть файл

@ -1,16 +1,13 @@
#version 100
#version 300 es
// Input vertex attributes
attribute vec3 vertexPosition;
attribute vec2 vertexTexCoord;
precision highp float;
// Output vertex attributes (to fragment shader)
varying vec2 fragTexCoord;
layout (location = 0) in vec3 vertexPosition;
layout (location = 1) in vec2 vertexTexCoord;
void main()
{
fragTexCoord = vertexTexCoord;
out vec2 texCoord;
// Calculate final vertex position
gl_Position = vec4(vertexPosition, 1.0);
void main() {
gl_Position = vec4(vertexPosition, 1.0);
texCoord = vertexTexCoord;
}

Загрузка…
Отмена
Сохранить