added settings window,
connected all slider, lineEdits, checkboxes,..., need to connect everything with the OglViewerWidget now
This commit is contained in:
@@ -42,16 +42,15 @@ void main()
|
||||
if(light.position.w == 0)
|
||||
{
|
||||
surfaceToLight = normalize(light.position.xyz);
|
||||
attenuation = 1;
|
||||
}
|
||||
// point light
|
||||
else
|
||||
{
|
||||
surfaceToLight = normalize(light.position.xyz - v_surfacePosition);
|
||||
|
||||
float distanceToLight = length(light.position.xyz - v_surfacePosition);
|
||||
attenuation = 1.0 / (1.0 + light.attenuationFactor * pow(distanceToLight, 2));
|
||||
}
|
||||
|
||||
float distanceToLight = length(light.position.xyz - v_surfacePosition);
|
||||
attenuation = 1.0 / (1.0 + light.attenuationFactor * pow(distanceToLight, 2));
|
||||
|
||||
vec3 surfaceToCamera = normalize(cameraPosition - v_surfacePosition);
|
||||
|
||||
|
Reference in New Issue
Block a user