Jump to content

environment(bla,bla); bug?


AndrewVK

Recommended Posts

1. Create simple environment texture:

from top to middle - white colour

from midddle to bottom - red colour

2. Convert texture to Rat format (to enable blur)

3. Create simple scene: sphere on the plane.

4. Aplly this shader:

surface

test(

string env="";

float envblur=0.0;

)

{

vector Nn = frontface(normalize(N),I);

vector NnS = wt_nspace(Nn);

vector envcol = environment(env, NnS, "wrap", "repeat",

"filter", "box", "width", envblur);

Cf = envcol;

}

In this case plane and half of sphere MUST be lit with uniform white

and bottom half of the sphere with uniform red....however

....plane appears in pink

....pink dot appears on top and bottom pole of the sphere

Whats wrong? :unsure: (<---my favorite smile)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...