unit – ToonRamp Shader + Normal Maps: how to keep strict lighting strips?

I'm trying to get a shading similar to that of this image:

Image 1: https://imgur.com/a/eTTvSCD

To get something similar, I wrote a shader ramp shader (similar to that of standard assets) with normal cards. The shader works, and without a normal map, you can see the strictly defined lighting strips, with visible seams separating them (Image 2). But once you have added a normal map, the toon bands will have more well-defined seams and blend seamlessly into the mesh (Image 3).

Image 2 & 3: https://imgur.com/a/SI3BxED

This is my current shader:

Shader "Custom/ToonRampWithNormals" 
{
    Properties
    {
        _Color ("Color", Color) = (1,1,1,1)
        _MainTex ("Albedo (RGB)", 2D) = "white" {}
        _BumpMap("Bumpmap", 2D) = "bump" {}
        _Ramp("Toon Ramp", 2D) = "white" {}
    }
    SubShader
    {
        Tags { "RenderType"="Opaque" }
        LOD 200

        CGPROGRAM
        #pragma surface surf Ramp

        // Use shader model 3.0 target, to get nicer looking lighting
        #pragma target 3.0

        sampler2D _Ramp;

        half4 LightingRamp(SurfaceOutput s, half3 lightDir, half atten) 
        {
            half NdotL = dot(s.Normal, lightDir);
            half diff = NdotL * 0.5 + 0.5;
            half3 ramp = tex2D(_Ramp, float2(diff,diff)).rgb;
            half4 c;
            c.rgb = s.Albedo * _LightColor0.rgb * ramp * atten;
            c.a = s.Alpha;
            return c;
        }

        struct Input
        {
            float2 uv_MainTex;
            float2 uv_BumpMap;
        };

        sampler2D _MainTex;
        sampler2D _BumpMap;
        half _Glossiness;
        fixed4 _Color;

        UNITY_INSTANCING_BUFFER_START(Props)
            // put more per-instance properties here
        UNITY_INSTANCING_BUFFER_END(Props)

        void surf (Input IN, inout SurfaceOutput o)
        {
            // Albedo comes from a texture tinted by color
            fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color;
            o.Albedo = c.rgb;
            o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap));
            o.Alpha = c.a;
        }
        ENDCG
    }
    FallBack "Diffuse" 
}

So, what did I do wrong? How can I have well defined lighting strips and normal mapping?

If you can think of a better way to achieve something similar to the reference or if you have ideas about it, share, any contribution is welcome.

Suppliers of urine test strips in China

Posts: 9
Son: 9
Thank you received: 0 in 0 messages

Thanks given: 0
Member since: September 2019

◆ our story
Changchun Wancheng Bio-Electron Co., Ltd. was established in 2002 and has specialized in research and development, production and sale of medical devices and reagents.
We are a professional manufacturer of medical urine test strips, water test strips, quick test kits, urine analyzer, analyzer. of hematology and a reagent of hematology. With regard to medical urine analyzers, we supply semi-automatic series W-200 and W-600. For the hematology analyzer, we have a three-part diff heterologous hematology analyzer, the CBC-6000. And the 5-part hematology analyzer will be completed and marketed in 2019. Our main product urine test strips include 1 to 14 parameters. All the products we supply are of good quality and competitively priced.
◆ Our factor
Reliable suppliers
Business Management. GMP, CE, FDA, ISO13485, ISO 9001.
B.We has two production lines of urine test strips, two water test strip production lines and two production lines of rapid test kits.
We have strong R & D group to develop new products and engaged in marking.
D. We have a team of sales representatives to provide experienced OEM and ODM design advice to the customer from all over the world.
◆ our product
Test ranges:
Our main products – The water test strips have been developed and expanded to 31 products. They are: pH, total alkalinity, residual chlorine, total chlorine, nitrate, nitrite, Hg, lead, iron, copper, fluoride, cyanuric acid, bromine, Cr, hardness, sulfate, carbonate root, carbonate root. hydrogen, salt, and quaternary ammonium, potassium permanganate, sulphite, VC, calcium, hydrogen peroxide, Escherichia coli, phosphate, hydrogen sulphide, chlorine dioxide, peracetic acid, sulfur dioxide, ammonia Nitrogen.
Among them, the Escherichia Coli Water test strips were awarded the first national patent in this field. And he's reacted well to American buyers.
◆ Product Application
Items must be tested in pools, spas, pools, spas:
Total hardness (TH), total chlorine (TCL), free chlorine (FCL), pH, total alkalinity (AIK), cyanuric acid (CYA), bromine (Br)
The items must be tested in the aquarium: ph, nitrite, nitrate, carbonate, total hardness, total alkalinity, free chloride
Home drinking water test for: fluoride, total hardness, pH, lead, iron,
Copper, total alkalinity, nitrite, nitrate, free chlorine, cyanuric acid,
Total Chlorine, Bromine, Escherichia Coli, Carbonate, Ammonium Chloride
◆ our certificate
CE, FDA, ISO 13485, ISO 9001 certification
◆ production equipment
Our manufacturing plant has realized a fully automatic system with advanced technology, a 100% purified environment plant, a 100% precison, a 0% difference between batches. All make our bands more competitive in global markets. We have built 100,000 purification workshops according to GMP standards.
◆ Production market
Our main markets are Europe, North America, South America, Asia, Middle East, Africa. We have 15 years of professional experience in urine test strips. Most sellers of Amazon urine strips chose us as the supplier.
Our service
1.Free samples are offered. Customize the different panels of urine strips, bottle label and outer paper box according to customer needs.
2. Fast production and fast delivery time.
3.You can pay by T / T, paypal, western union and alibaba commercial insurance order is also acceptable.
4. Regarding the shipment, we ship goods by UPS / DHL / FEDEX / TNT Express, which door to door, takes 3 to 5 days to arrive; we can also help you ship by air freight which you need to go to the air port bring home, it takes about 2-7 days to arrive; If the goods are large and you do not need it urgently, you can choose by sea to save shipping costs that take about a month to arrive.
website: http: //www.vansful.com/

vertical strips on sony ar7ii (some pictures)

Recently, I bought a Sony AR7ii and did about 2k photos with it.
works fine, but sometimes I see these black stripes.

I have no idea what causes it and how to avoid it. any idea would be appreciated! (

Complexity of STRIPS planning to find the optimal solution: PSPACE-complete or NP-complete?

I read the two articles below to try to determine if STRIPS is NP-complete or PSPACE-complete. Specifically, I try to understand the complexity of finding optimal solutions with the help of STRIPS.

Moreover, Bylander (1994) defines PLANMIN to find the shortest plane. This is related to the length directly where the goal is to minimize the length of the plane. I'm not sure I can apply his reasoning to my situation. I'm using an objective function other than length, for which I have to find the complete plan before calculating its utility, then a plan minimizing this utility. So I can not just stop my searches and go back if I find a plan longer than the shortest one I have found so far. Does this condition make this NP-complete search?

Thank you in advance.

Bylander, T. (1994). The computational complexity of propositional STRIPS planning. Artificial Intelligence, 69 (1-2), 165-204. https://doi.org/10.1016/0004-3702(94)90081-7

Erol, K., Nau, D.S. and Subrahmanian, V.S. (1991). Results of complexity, decidability and undecidability for domain independent planning: detailed analysis, 76 (CS-TR-2797), 75-88.