POV-Ray : Newsgroups : povray.bugreports : Using phong with shadowless : Using phong with shadowless Server Time
20 Apr 2024 04:10:00 EDT (-0400)
  Using phong with shadowless  
From: Bald Eagle
Date: 20 Nov 2022 13:00:00
Message: <web.637a6a1a87f3036f1f9dae3025979125@news.povray.org>
While experimenting with some code, I was using a shadowless light, and noticed
that I wasn't getting a phong highlight on a sphere with that finish.

Is this for some reason the intended behaviour, or an actual bug?


Minimal scene:


#version 3.8;
global_settings {assumed_gamma 1.0}



#declare Camera_Orthographic = true;
#declare Camera_Position = <0, 0, -100> ;
#declare Camera_Look_At  = <0, 0,  0> ;
// functions as a zoom for the orthographic view: 4 zooms in 4x, 8 zooms in 8x,
etc.
#declare Fraction = 75;

// ###########################################
camera {
 #if (Camera_Orthographic = true)
  orthographic
  right     x*image_width/(Fraction)
  up   y*image_height/(Fraction)
 #else
  right     x*image_width/image_height
  up y
 #end
 location  Camera_Position
 look_at   Camera_Look_At}
// ###########################################

sky_sphere {pigment {rgb <1, 1, 0.8>}}
#declare LS = <10, 10, -20>;
light_source {LS rgb 1 } //shadowless}

#declare Color = z*0.2; //<1, 0.9, 0.0>;
sphere {0, 1.2 texture {pigment {rgb Color} finish {phong 1}} }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.