• Post Reply Bookmark Topic Watch Topic
  • New Topic

RescaleOp shading problem  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this piece of code:

and from what I've read it should shade the image to the given shade, but it changes its colors:
original:

at shade = 0.5f:

at shade = 1.5f;

any idea what causes this problem and otherwise how to shade it correctly?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!