Hi everyone, Im having a small problem with PSSM shadows.

[video:youtube]https://youtu.be/u5pWD222IrQ[/video]


If you watch the video, at a certain angle, the shadows disappear on the objects, but returns when the camera is rotated back.

Any idea what could be going on? Im using the default PSSM shader. Here are my settings:



Code:
#ifdef PSSM
	shadow_stencil = 8; // activate external shadows
// all objects get the SHADOW flag
	for(you = ent_next(NULL); you; you = ent_next(you)) 
	set(you,SHADOW);
	
	pssm_transparency=.5;
	
	
//	 camera.clip_far = 10000;
 camera.clip_near = 1;
 
 pssm_fbias = 0.0001;
	
	vec_set(sun_angle,vector(-90,60,1000));
	
	pssm_splitweight=.5;
	
	pssm_res=1024;
	
	pssm_run(3);
#else  
	camera.material = mtlShadow; // render all objects with the mtlShadow material
	viewDepth.stage = camera;    // use the Depth view as a preprocessor for the camera view
#endif


Last edited by jumpman; 05/09/17 03:23.