Hey,
I’m working on a turned based games with ships on sea. I’m using the basic water mesh in the standard assets as my playfield. I scaled it 200, 0, 200 so it’s pretty big. Of course I don’t want the game to play in that entire area I just want a portion of it, preferably where the camera doesn’t see the edges of the round mesh. I can limit my camera and ship movements within boundaries just fine. Then I got thinking about how will I visualize the game area to my players. I first thought to use some sort of transparent texture with a dotted boundary line pasted onto the water mesh. However then I started thinking that the shader on the water might do weird stuff with that. Also there doesn’t seem to be something like pasting textures on a mesh like a decal or whatever that stuff is called (I’m a programmer taking his first steps in game programming and not an artist).
So I dropped that idea and I came up with how about I light everything that is out of bounds really dark and the play area really bright.
I’m just not sure how to approach this, I currently have one directional light in my scene lighting everything. I’ve been experimenting with spotlight but not with much luck. I have two challenges, first the lighted area needs to match my bounds. To make it easy the center of the square is 0,0,0 the boundaries are (-10,0,-10),(-10,0,10),(10,0,-10),(10,0,10). So an unnormalized 10 by 10 grid. I probably need two lights but how to configure them is puzzling me. Can anyone put me on the right direction ?