mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 13:07:02 +02:00
28 lines
679 B
Text
28 lines
679 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// simple.frag
|
|
// fragment shader
|
|
//
|
|
// Created by Andrzej Kapolka on 9/15/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
<@include DeferredBufferWrite.slh@>
|
|
<@include model/Material.slh@>
|
|
|
|
// the interpolated normal
|
|
in vec3 _normal;
|
|
in vec3 _color;
|
|
|
|
void main(void) {
|
|
packDeferredFragment(
|
|
normalize(_normal.xyz),
|
|
1.0,
|
|
_color.rgb,
|
|
DEFAULT_ROUGHNESS, DEFAULT_METALLIC, DEFAULT_EMISSIVE, DEFAULT_OCCLUSION);
|
|
}
|