Packages

Simulates (NOT EMULATES) Farmbot's arduino firmware and hardware. The firmware is pretty stable and used in FarmbotOS's testing environment. The visual hardware simulator is very much a WIP.

Current section

Files

Jump to
farmbot_simulator src res basicShader.fs
Raw

src/res/basicShader.fs

#version 120
varying vec2 texCoord0;
varying vec3 normal0;
uniform sampler2D sampler;
uniform vec3 lightDirection;
void main()
{
gl_FragColor = texture2D(sampler, texCoord0) *
clamp(dot(-lightDirection, normal0), 0.0, 1.0);
}